
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.环境搭建 · Gary的小窝</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Gary">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism-solarizedlight.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-comscore/test.css">
                
            
        

    

    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../life/" />
    
    
    <link rel="prev" href="./" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    写在前面
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../leetcode/">
            
                <a href="../leetcode/">
            
                    
                    Leetcode之旅
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../leetcode/1.html">
            
                <a href="../leetcode/1.html">
            
                    
                    1.两数之和
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../leetcode/2.html">
            
                <a href="../leetcode/2.html">
            
                    
                    2.两数相加
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../leetcode/3.html">
            
                <a href="../leetcode/3.html">
            
                    
                    3.无重复字符的最长子串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../leetcode/4.html">
            
                <a href="../leetcode/4.html">
            
                    
                    4.寻找两个有序数组的中位数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../leetcode/6.html">
            
                <a href="../leetcode/6.html">
            
                    
                    6.Z字形变换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../leetcode/9.html">
            
                <a href="../leetcode/9.html">
            
                    
                    9.回文数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../leetcode/11.html">
            
                <a href="../leetcode/11.html">
            
                    
                    11.盛最多水的容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="../leetcode/12.html">
            
                <a href="../leetcode/12.html">
            
                    
                    12.整数转罗马数字
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="../leetcode/13.html">
            
                <a href="../leetcode/13.html">
            
                    
                    13.罗马数字转整数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="../leetcode/14.html">
            
                <a href="../leetcode/14.html">
            
                    
                    14.最长公共前缀
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="../leetcode/322.html">
            
                <a href="../leetcode/322.html">
            
                    
                    322.零钱兑换
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="../leetcode/72.html">
            
                <a href="../leetcode/72.html">
            
                    
                    72.编辑距离
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../flutter/">
            
                <a href="../flutter/">
            
                    
                    Flutter从入门到放弃
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../flutter/dart1.html">
            
                <a href="../flutter/dart1.html">
            
                    
                    1.Dart语言(1)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../flutter/dart2.html">
            
                <a href="../flutter/dart2.html">
            
                    
                    2.Dart语言(2)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../flutter/widget1.html">
            
                <a href="../flutter/widget1.html">
            
                    
                    3.Flutter初始化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../flutter/containerText.html">
            
                <a href="../flutter/containerText.html">
            
                    
                    4.Container和Text组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../flutter/image.html">
            
                <a href="../flutter/image.html">
            
                    
                    5.Image组件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../flutter/chapter2.html">
            
                <a href="../flutter/chapter2.html">
            
                    
                    6.Flutter 技术总结
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../vue/">
            
                <a href="../vue/">
            
                    
                    Vue组件精讲
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../vue/1.html">
            
                <a href="../vue/1.html">
            
                    
                    1.provide/inject
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../vue/2.html">
            
                <a href="../vue/2.html">
            
                    
                    2.手动实现broadcast和dispatch方法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../js/form.html">
            
                <a href="../js/form.html">
            
                    
                    3.自己动手实现带校验的Form表单组件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../js/">
            
                <a href="../js/">
            
                    
                    JavaScript进阶
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../js/proxy.html">
            
                <a href="../js/proxy.html">
            
                    
                    1.Vue.js 3.0中的响应式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../js/el.html">
            
                <a href="../js/el.html">
            
                    
                    2.Element UI 源码初探
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../js/bind.html">
            
                <a href="../js/bind.html">
            
                    
                    3.bind的模拟实现
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../js/proto.html">
            
                <a href="../js/proto.html">
            
                    
                    4.JS原型和原型链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../js/call.html">
            
                <a href="../js/call.html">
            
                    
                    5.模拟实现call和apply
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../js/ui.html">
            
                <a href="../js/ui.html">
            
                    
                    6.使用Vue cli3搭建组件库并发布到 npm
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../js/microFE.html">
            
                <a href="../js/microFE.html">
            
                    
                    7.记一次基于qiankun的微前端的改造
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../js/git.html">
            
                <a href="../js/git.html">
            
                    
                    8.Git的使用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="./">
            
                <a href="./">
            
                    
                    基于Vue的PC端的组件库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.6.1" data-path="1.html">
            
                <a href="1.html">
            
                    
                    1.环境搭建
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../life/">
            
                <a href="../life/">
            
                    
                    网事杂谈
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../life/1.html">
            
                <a href="../life/1.html">
            
                    
                    1.周杰伦专辑赏析--叶惠美
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../life/2.html">
            
                <a href="../life/2.html">
            
                    
                    2.周杰伦专辑赏析--七里香
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >1.环境搭建</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#1&#x73AF;&#x5883;&#x7684;&#x642D;&#x5EFA;"><b></b>1.&#x73AF;&#x5883;&#x7684;&#x642D;&#x5EFA;</a></li><ul><li><span class="title-icon "></span><a href="#&#x5148;&#x601D;&#x8003;"><b></b>&#x5148;&#x601D;&#x8003;</a></li><li><span class="title-icon "></span><a href="#&#x5F00;&#x59CB;---&#x521B;&#x5EFA;&#x9ED8;&#x8BA4;&#x9879;&#x76EE;"><b></b>&#x5F00;&#x59CB;---&#x521B;&#x5EFA;&#x9ED8;&#x8BA4;&#x9879;&#x76EE;</a></li><li><span class="title-icon "></span><a href="#&#x4FEE;&#x6539;&#x539F;&#x59CB;&#x76EE;&#x5F55;&#x7ED3;&#x6784;"><b></b>&#x4FEE;&#x6539;&#x539F;&#x59CB;&#x76EE;&#x5F55;&#x7ED3;&#x6784;</a></li><li><span class="title-icon "></span><a href="#&#x5F00;&#x59CB;&#x7F16;&#x5199;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x6765;&#x8BD5;&#x6C34;"><b></b>&#x5F00;&#x59CB;&#x7F16;&#x5199;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x6765;&#x8BD5;&#x6C34;</a></li><li><span class="title-icon "></span><a href="#&#x7EC4;&#x4EF6;&#x6253;&#x5305;"><b></b>&#x7EC4;&#x4EF6;&#x6253;&#x5305;</a></li><li><span class="title-icon "></span><a href="#&#x53D1;&#x5E03;npm"><b></b>&#x53D1;&#x5E03;npm</a></li></ul></ul></div><a href="#1&#x73AF;&#x5883;&#x7684;&#x642D;&#x5EFA;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="1&#x73AF;&#x5883;&#x7684;&#x642D;&#x5EFA;"><a name="1&#x73AF;&#x5883;&#x7684;&#x642D;&#x5EFA;" class="anchor-navigation-ex-anchor" href="#1&#x73AF;&#x5883;&#x7684;&#x642D;&#x5EFA;"><i class="fa fa-link" aria-hidden="true"></i></a>1.&#x73AF;&#x5883;&#x7684;&#x642D;&#x5EFA;</h1>
<p>&#x5728;&#x4E4B;&#x524D;&#x7684;&#x6587;&#x7AE0;&#x4E2D;&#x5DF2;&#x7ECF;&#x5B66;&#x4E60;&#x8FC7;&#x901A;&#x8FC7;Vue-cli3&#x6784;&#x5EFA;&#x4E00;&#x4E2A;&#x5E93;&#x6A21;&#x5F0F;&#x8FDB;&#x884C;&#x7EC4;&#x4EF6;&#x5E93;&#x7684;&#x5F00;&#x53D1;&#xFF0C;&#x5E76;&#x4E14;&#x4E0A;&#x4F20;&#x5230;npm&#x4E0A;&#x7684;&#x8FD9;&#x4E48;&#x4E00;&#x5957;&#x6D41;&#x7A0B;&#x4E86;&#xFF0C;&#x90A3;&#x5C31;&#x76F4;&#x63A5;&#x5F00;&#x5E72;&#x5427;&#x3002;</p>
<h2 id="&#x5148;&#x601D;&#x8003;"><a name="&#x5148;&#x601D;&#x8003;" class="anchor-navigation-ex-anchor" href="#&#x5148;&#x601D;&#x8003;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5148;&#x601D;&#x8003;</h2>
<p>&#x6211;&#x51C6;&#x5907;&#x600E;&#x4E48;&#x5F00;&#x53D1;&#x5462;&#xFF0C;&#x6211;&#x60F3;&#x4E86;&#x4EE5;&#x4E0B;&#x51E0;&#x70B9;&#xFF1A;</p>
<ul>
<li>&#x91C7;&#x7528;&#x7684;css&#x9884;&#x5904;&#x7406;&#x5668;&#x4E3A;sass.</li>
<li>&#x7EC4;&#x4EF6;&#x5E93;&#x4E2D;&#x6CA1;&#x6709;&#x4F7F;&#x7528;&#x8DEF;&#x7531;.</li>
<li>&#x6A21;&#x677F;&#x4E0E;&#x6837;&#x5F0F;&#x5206;&#x79BB;&#x7684;&#x5F62;&#x5F0F;&#xFF0C;vue&#x6587;&#x4EF6;&#x4E0D;&#x5199;&#x6837;&#x5F0F;</li>
</ul>
<h2 id="&#x5F00;&#x59CB;---&#x521B;&#x5EFA;&#x9ED8;&#x8BA4;&#x9879;&#x76EE;"><a name="&#x5F00;&#x59CB;---&#x521B;&#x5EFA;&#x9ED8;&#x8BA4;&#x9879;&#x76EE;" class="anchor-navigation-ex-anchor" href="#&#x5F00;&#x59CB;---&#x521B;&#x5EFA;&#x9ED8;&#x8BA4;&#x9879;&#x76EE;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5F00;&#x59CB;---&#x521B;&#x5EFA;&#x9ED8;&#x8BA4;&#x9879;&#x76EE;</h2>
<p>&#x4F7F;&#x7528; <code>vue create xxx</code> &#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x9ED8;&#x8BA4;&#x9879;&#x76EE; &#x6211;&#x4F7F;&#x7528;&#x7684;&#x662F;vue-cli&#x7684;3.x&#x7248;&#x672C;</p>
<p>&#x5B83;&#x4F1A;&#x8BE2;&#x95EE;&#x4F60;&#x4F7F;&#x7528;&#x4EC0;&#x4E48;&#x7EC4;&#x4EF6;&#x63D2;&#x4EF6;</p>
<p><img src="https://imgkr.cn-bj.ufileos.com/6a9f02ba-05dd-455c-abc4-ce2adc973b57.png" alt="&#x8BE2;&#x95EE;"></p>
<p>&#x6211;&#x4F7F;&#x7528;&#x7684;&#x662F;default&#x9009;&#x9879;&#xFF0C;&#x7A0D;&#x7B49;&#x7247;&#x523B;&#x540E;&#xFF0C;&#x4F60;&#x4F1A;&#x5F97;&#x5230;&#x9ED8;&#x8BA4;&#x7684;&#x76EE;&#x5F55;&#x7ED3;&#x6784;&#x3002;</p>
<h2 id="&#x4FEE;&#x6539;&#x539F;&#x59CB;&#x76EE;&#x5F55;&#x7ED3;&#x6784;"><a name="&#x4FEE;&#x6539;&#x539F;&#x59CB;&#x76EE;&#x5F55;&#x7ED3;&#x6784;" class="anchor-navigation-ex-anchor" href="#&#x4FEE;&#x6539;&#x539F;&#x59CB;&#x76EE;&#x5F55;&#x7ED3;&#x6784;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4FEE;&#x6539;&#x539F;&#x59CB;&#x76EE;&#x5F55;&#x7ED3;&#x6784;</h2>
<p>&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5C06;&#x539F;&#x672C;&#x7684;src&#x76EE;&#x5F55;&#x6539;&#x4E3A;examples&#xFF0C;&#x7136;&#x540E;&#x521B;&#x5EFA;packages&#x76EE;&#x5F55;&#x6765;&#x7F16;&#x5199;&#x81EA;&#x5DF1;&#x7684;&#x7EC4;&#x4EF6;&#x5E93;&#x6587;&#x4EF6;&#xFF0C;&#xFF08;&#x4E3A;&#x4EC0;&#x4E48;&#x8FD9;&#x4E48;&#x6574;&#x5462;&#xFF0C;&#x56E0;&#x4E3A;&#x6211;&#x770B;ElementUI&#x5C31;&#x662F;&#x8FD9;&#x4E48;&#x6574;&#x7684;&#xFF0C;&#x9762;&#x5411;&#x524D;&#x8F88;&#x7F16;&#x7A0B;&#x5927;&#x6CD5;&#x597D;&#xFF0C;&#x55EF;&#x3002;&#x3002;&#xFF09;&#xFF0C;&#x641E;&#x597D;&#x540E;&#xFF0C;&#x4F60;&#x4F1A;&#x53D1;&#x73B0;&#x4F60;&#x7684;&#x76EE;&#x5F55;&#x5927;&#x6982;&#x957F;&#x8FD9;&#x6837;&#x7684;</p>
<p><img src="https://imgkr.cn-bj.ufileos.com/1a6454f8-508f-429b-a374-7222325ff40d.png" alt="&#x76EE;&#x5F55;"></p>
<p>&#x5230;&#x8FD9;&#x91CC;&#x4F60;&#x53EF;&#x80FD;&#x53D1;&#x73B0;&#x4E86;&#xFF0C;&#x9879;&#x76EE;&#x65E0;&#x6CD5;&#x8DD1;&#x8D77;&#x6765;&#x4E86;&#xFF0C;&#x56E0;&#x4E3A;&#x6211;&#x4EEC;&#x6CA1;&#x6709;&#x4E86;&#x539F;&#x59CB;&#x9ED8;&#x8BA4;&#x7684;&#x5165;&#x53E3;&#x6587;&#x4EF6;</p>
<p>&#x90A3;&#x4E48;&#x4E0B;&#x9762;&#x5F00;&#x59CB;&#x4FEE;&#x6539;&#x5165;&#x53E3;&#x4E86;&#xFF0C;&#x5728;&#x6839;&#x76EE;&#x5F55;&#x4E0B;&#x521B;&#x5EFA;vue.config.js&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF08;vue-cli3&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x5728;&#x8FD9;&#x91CC;&#x7684;&#x914D;&#x7F6E;&#x4F1A;&#x8986;&#x76D6;&#x811A;&#x624B;&#x67B6;webpack&#x9ED8;&#x8BA4;&#x7684;&#x914D;&#x7F6E;&#x9879;&#xFF09;&#x3002;</p>
<pre class="language-"><code class="lang-js">module<span class="token punctuation">.</span>exports <span class="token operator">=</span> <span class="token punctuation">{</span>
    pages<span class="token punctuation">:</span> <span class="token punctuation">{</span>
        index<span class="token punctuation">:</span> <span class="token punctuation">{</span>
          entry<span class="token punctuation">:</span> <span class="token string">&apos;examples/main.js&apos;</span><span class="token punctuation">,</span>
          template<span class="token punctuation">:</span> <span class="token string">&apos;public/index.html&apos;</span><span class="token punctuation">,</span>
          filename<span class="token punctuation">:</span> <span class="token string">&apos;index.html&apos;</span>
        <span class="token punctuation">}</span>
      <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
</code></pre>
<h2 id="&#x5F00;&#x59CB;&#x7F16;&#x5199;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x6765;&#x8BD5;&#x6C34;"><a name="&#x5F00;&#x59CB;&#x7F16;&#x5199;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x6765;&#x8BD5;&#x6C34;" class="anchor-navigation-ex-anchor" href="#&#x5F00;&#x59CB;&#x7F16;&#x5199;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x6765;&#x8BD5;&#x6C34;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5F00;&#x59CB;&#x7F16;&#x5199;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x6765;&#x8BD5;&#x6C34;</h2>
<p>&#x8FDB;&#x5165;packages&#x76EE;&#x5F55;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x76EE;&#x5F55;&#xFF08;helloworld&#xFF09;&#xFF0C;&#x4E00;&#x4E2A;index&#x6587;&#x4EF6;&#xFF08;&#x7528;&#x6765;&#x66B4;&#x9732;&#x6240;&#x6709;&#x7684;&#x7EC4;&#x4EF6;&#xFF09;</p>
<p><img src="https://imgkr.cn-bj.ufileos.com/7f7c5590-694b-4612-988e-ed6f8de84d04.png" alt="&#x76EE;&#x5F55;"></p>
<p>index.js</p>
<pre class="language-"><code class="lang-js"><span class="token keyword">import</span> HelloWorld <span class="token keyword">from</span> <span class="token string">&apos;./helloworld&apos;</span><span class="token punctuation">;</span>
<span class="token keyword">const</span> components <span class="token operator">=</span> <span class="token punctuation">{</span> HelloWorld <span class="token punctuation">}</span><span class="token punctuation">;</span>
<span class="token keyword">const</span> <span class="token function-variable function">install</span> <span class="token operator">=</span> <span class="token punctuation">(</span><span class="token parameter">Vue<span class="token punctuation">,</span>options</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span><span class="token punctuation">{</span>
    <span class="token keyword">if</span> <span class="token punctuation">(</span>install<span class="token punctuation">.</span>installed<span class="token punctuation">)</span> <span class="token keyword">return</span><span class="token punctuation">;</span>
    install<span class="token punctuation">.</span>installed <span class="token operator">=</span> <span class="token boolean">true</span>
    console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>options<span class="token punctuation">)</span>
    <span class="token keyword">for</span> <span class="token punctuation">(</span><span class="token keyword">const</span> key <span class="token keyword">in</span> components<span class="token punctuation">)</span> <span class="token punctuation">{</span>
        <span class="token keyword">if</span> <span class="token punctuation">(</span>components<span class="token punctuation">.</span><span class="token function">hasOwnProperty</span><span class="token punctuation">(</span>key<span class="token punctuation">)</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
            <span class="token keyword">const</span> component <span class="token operator">=</span> components<span class="token punctuation">[</span>key<span class="token punctuation">]</span><span class="token punctuation">;</span>
            Vue<span class="token punctuation">.</span><span class="token function">component</span><span class="token punctuation">(</span>component<span class="token punctuation">.</span>name<span class="token punctuation">,</span> component<span class="token punctuation">)</span>
        <span class="token punctuation">}</span>
    <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token keyword">if</span> <span class="token punctuation">(</span><span class="token keyword">typeof</span> window <span class="token operator">!==</span> <span class="token string">&apos;undefined&apos;</span> <span class="token operator">&amp;&amp;</span> window<span class="token punctuation">.</span>Vue<span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token function">install</span><span class="token punctuation">(</span>window<span class="token punctuation">.</span>Vue<span class="token punctuation">)</span>
<span class="token punctuation">}</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
    <span class="token comment">// &#x4F7F;&#x7528;Vue.use&#x5FC5;&#x987B;&#x5177;&#x6709;install&#x65B9;&#x6CD5;</span>
    <span class="token comment">// https://cn.vuejs.org/v2/api/#Vue-use</span>
    install<span class="token punctuation">,</span>
    <span class="token comment">// &#x540C;&#x65F6;&#x5BFC;&#x51FA;&#x7EC4;&#x4EF6;&#x5217;&#x8868;</span>
    <span class="token operator">...</span>components
<span class="token punctuation">}</span>
</code></pre>
<p>&#x5728;helloworld&#x7EC4;&#x4EF6;&#x4E2D;&#xFF0C;&#x4E5F;&#x5F97;&#x6709;&#x4E00;&#x4E2A;index.js&#x6587;&#x4EF6;&#xFF0C;&#x6211;&#x4EEC;&#x518D;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;src&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x5728;&#x91CC;&#x9762;&#x5199;&#x7EC4;&#x4EF6;&#xFF0C;&#x521B;&#x5EFA;index.vue&#x6587;&#x4EF6;</p>
<p><img src="https://imgkr.cn-bj.ufileos.com/8c6223e6-aab5-4325-85ef-f55298c6d85e.png" alt="&#x76EE;&#x5F55;"></p>
<p>&#x5728;helloWorld&#x7684;index.js&#x4E2D;&#x4F7F;&#x7528;install&#x65B9;&#x6CD5;&#x66B4;&#x9732;&#x51FA;&#x5F53;&#x524D;&#x7EC4;&#x4EF6; </p>
<pre class="language-"><code class="lang-js"><span class="token keyword">import</span> HelloWord <span class="token keyword">from</span> <span class="token string">&apos;./src/index.vue&apos;</span><span class="token punctuation">;</span>
HelloWord<span class="token punctuation">.</span><span class="token function-variable function">install</span> <span class="token operator">=</span> <span class="token punctuation">(</span><span class="token parameter">Vue</span><span class="token punctuation">)</span><span class="token operator">=&gt;</span><span class="token punctuation">{</span>
    Vue<span class="token punctuation">.</span><span class="token function">components</span><span class="token punctuation">(</span>HelloWord<span class="token punctuation">.</span>name<span class="token punctuation">,</span>HelloWord<span class="token punctuation">)</span>
<span class="token punctuation">}</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> HelloWord<span class="token punctuation">;</span>
</code></pre>
<p>&#x5728;vue&#x6587;&#x4EF6;&#x4E2D;&#x4F60;&#x53EF;&#x4EE5;&#x81EA;&#x7531;&#x53D1;&#x6325;&#x5566;&#xFF0C;&#x5199;&#x70B9;&#x4E1C;&#x897F;</p>
<pre class="language-"><code class="lang-js"><span class="token operator">&lt;</span>template<span class="token operator">&gt;</span>
  <span class="token operator">&lt;</span>div <span class="token keyword">class</span><span class="token operator">=</span><span class="token string">&quot;container&quot;</span><span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span>div<span class="token operator">&gt;</span><span class="token punctuation">{</span><span class="token punctuation">{</span> msg <span class="token punctuation">}</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
    <span class="token operator">&lt;</span>div<span class="token operator">&gt;</span><span class="token punctuation">{</span><span class="token punctuation">{</span> proData <span class="token punctuation">}</span><span class="token punctuation">}</span><span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
  <span class="token operator">&lt;</span><span class="token operator">/</span>div<span class="token operator">&gt;</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>template<span class="token operator">&gt;</span>

<span class="token operator">&lt;</span>script<span class="token operator">&gt;</span>
<span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
  name<span class="token punctuation">:</span> <span class="token string">&apos;Demo&apos;</span><span class="token punctuation">,</span>
  props<span class="token punctuation">:</span> <span class="token punctuation">{</span>
    proData<span class="token punctuation">:</span> <span class="token punctuation">{</span>
      type<span class="token punctuation">:</span> String<span class="token punctuation">,</span>
      <span class="token keyword">default</span><span class="token punctuation">:</span> <span class="token string">&apos;&#x6211;&#x662F;&#x9ED8;&#x8BA4;&#x503C;&apos;</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span><span class="token punctuation">,</span>
  <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    <span class="token keyword">return</span> <span class="token punctuation">{</span>
      msg<span class="token punctuation">:</span> <span class="token string">&apos;hello world packages&apos;</span>
    <span class="token punctuation">}</span>
  <span class="token punctuation">}</span>
<span class="token punctuation">}</span>
<span class="token operator">&lt;</span><span class="token operator">/</span>script<span class="token operator">&gt;</span>
</code></pre>
<p>&#x8FD9;&#x4E2A;&#x65F6;&#x5019; &#x5DF2;&#x7ECF;&#x5199;&#x597D;&#x4E86;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6; &#x90A3;&#x4E48;&#x6211;&#x4EEC;&#x5728;examples&#x6587;&#x4EF6;&#x5939;&#x4E2D; &#x5F15;&#x5165;&#x8FD9;&#x4E2A;&#x7EC4;&#x4EF6;&#xFF0C;&#x627E;&#x5230;main.js</p>
<pre class="language-"><code class="lang-js"><span class="token comment">//main.js</span>
<span class="token operator">...</span>
<span class="token keyword">import</span> libs <span class="token keyword">from</span> <span class="token string">&quot;../packages&quot;</span>
<span class="token operator">...</span>
Vue<span class="token punctuation">.</span><span class="token function">use</span><span class="token punctuation">(</span>libs<span class="token punctuation">,</span><span class="token punctuation">{</span>options<span class="token punctuation">:</span><span class="token string">&apos;test&apos;</span><span class="token punctuation">}</span><span class="token punctuation">)</span>
</code></pre>
<p>&#x5230;&#x73B0;&#x5728;&#x9879;&#x76EE;&#x57FA;&#x672C;&#x5DF2;&#x7ECF;&#x8DD1;&#x8D77;&#x6765;&#x4E86;&#xFF0C;&#x5728;&#x9879;&#x76EE;&#x4E2D;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x8C03;&#x7528;&#x7EC4;&#x4EF6;&#x4E86;&#xFF0C;&#x65E0;&#x9700;&#x5728;components&#x91CC;&#x6CE8;&#x518C;&#xFF0C;&#x5E73;&#x65F6;&#x5F00;&#x53D1;&#x4E2D;&#x4F60;&#x7684;&#x5168;&#x5C40;&#x7EC4;&#x4EF6;&#x4E5F;&#x53EF;&#x4EE5;&#x8FD9;&#x6837;&#x6765;&#x6CE8;&#x518C;&#x4F7F;&#x7528;&#x3002;</p>
<p><img src="https://imgkr.cn-bj.ufileos.com/4561132c-3709-4b33-92bc-ea2886a3cb3f.png" alt="&#x76EE;&#x5F55;"></p>
<h2 id="&#x7EC4;&#x4EF6;&#x6253;&#x5305;"><a name="&#x7EC4;&#x4EF6;&#x6253;&#x5305;" class="anchor-navigation-ex-anchor" href="#&#x7EC4;&#x4EF6;&#x6253;&#x5305;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x7EC4;&#x4EF6;&#x6253;&#x5305;</h2>
<p>vue-cli3&#x4E2D;&#x63D0;&#x4F9B;&#x4E86;&#x6784;&#x5EFA;&#x4E00;&#x4E2A;&#x5E93;&#x7684;&#x65B9;&#x6CD5;&#xFF0C;&#x9ED8;&#x8BA4;&#x662F;&#x6784;&#x5EFA;&#x5E94;&#x7528;&#xFF0C;&#x8FD9;&#x4E2A;&#x65B9;&#x6CD5;&#x63D0;&#x4F9B;&#x7684;&#x51E0;&#x4E2A;&#x914D;&#x7F6E;&#x9879;&#x4E3B;&#x8981;&#x6709;&#x4EE5;&#x4E0B;&#x51E0;&#x4E2A;</p>
<ol>
<li>target: &#x6539;&#x4E3A; lib &#x53EF;&#x542F;&#x7528;&#x6784;&#x5EFA;&#x5E93;&#x6A21;&#x5F0F;&#xFF1B;</li>
<li>name: &#x6784;&#x5EFA;&#x5E93;&#x8F93;&#x51FA;&#x7684;&#x6587;&#x4EF6;&#x540D;&#xFF1B;</li>
<li>dest: &#x6784;&#x5EFA;&#x7684;&#x8F93;&#x51FA;&#x76EE;&#x5F55;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A; dist&#xFF1B;</li>
<li>entry: &#x5165;&#x53E3;&#x6587;&#x4EF6;&#x8DEF;&#x5F84;&#xFF1B;</li>
</ol>
<pre class="language-"><code>vue-cli-service build --target lib --name myLib --dest libs [entry]
</code></pre><p>&#x6240;&#x4EE5;&#x9700;&#x8981;&#x5728;&#x9879;&#x76EE;&#x7684;package.json&#x6587;&#x4EF6;&#x4E2D;&#x6DFB;&#x52A0;&#x4E00;&#x6761;&#x4E0A;&#x9762;&#x7684;&#x6267;&#x884C;&#x811A;&#x672C;</p>
<pre class="language-"><code>&quot;scripts&quot;: {
    &quot;lib&quot;: &quot;vue-cli-service build --target lib --name fantui --dest lib packages/index.js&quot;
}
</code></pre><p>&#x7136;&#x540E;&#x6267;&#x884C;npm run lib&#x4F1A;&#x5728;&#x8DDF;&#x76EE;&#x5F55;&#x4E0B;&#x751F;&#x6210;lib&#x6587;&#x4EF6;&#x5939;&#xFF0C;lib&#x4F1A;&#x751F;&#x6210;&#x4E09;&#x79CD;&#x5F62;&#x5F0F;&#x7684;&#x6587;&#x4EF6;&#xFF08;commonjs&#xFF0C;umd&#xFF0C;umd-min&#xFF09;</p>
<h2 id="&#x53D1;&#x5E03;npm"><a name="&#x53D1;&#x5E03;npm" class="anchor-navigation-ex-anchor" href="#&#x53D1;&#x5E03;npm"><i class="fa fa-link" aria-hidden="true"></i></a>&#x53D1;&#x5E03;npm</h2>
<p>&#x6709;&#x4E86;&#x4E0A;&#x9762;&#x7684;&#x56DB;&#x6B65;&#xFF0C;&#x57FA;&#x672C;&#x4E0A;&#x5F00;&#x53D1;&#x9636;&#x6BB5;&#x7B97;&#x662F;&#x5B8C;&#x6210;&#x4E86;&#xFF0C;&#x63A5;&#x4E0B;&#x6765;&#x5C31;&#x662F;&#x5982;&#x4F55;&#x8BA9;&#x4F60;&#x7684;&#x5E93;&#x6709;&#x4E00;&#x4E2A;&#x5B58;&#x50A8;&#x7684;&#x5730;&#x65B9;&#xFF0C;&#x65B9;&#x4FBF;&#x4E0B;&#x4E00;&#x6B21;&#x7684;&#x590D;&#x7528;&#xFF0C;&#x9996;&#x5148;&#x4F60;&#x5E94;&#x8BE5;&#x60F3;&#x5230;&#x4E86;npm&#xFF0C;&#x8FD9;&#x4E2A;node&#x5305;&#x7BA1;&#x7406;&#x5E93;&#x3002;</p>
<p>&#x4E00;&#x4E2A;&#x57FA;&#x7840;&#x7684;npm&#x5305;&#xFF0C;&#x4F60;&#x9996;&#x5148;&#x9700;&#x8981;&#x77E5;&#x9053;package.json&#x4E2D;&#x8FD9;&#x4E9B;&#x914D;&#x7F6E;&#x7684;&#x4F5C;&#x7528;</p>
<ol>
<li>name -----&gt; &#x5305;&#x7684;&#x540D;&#x79F0;&#xFF0C;&#x5FC5;&#x987B;&#x552F;&#x4E00;&#xFF0C;&#x4E0D;&#x80FD;&#x8DDF;&#x5DF2;&#x6709;&#x7684;npm&#x5305;&#x91CD;&#x540D;&#xFF0C;&#x5426;&#x5219;&#x53D1;&#x5E03;&#x4E0D;&#x4E0A;&#x53BB;&#xFF1B;</li>
<li>version -----&gt; &#x5305;&#x7684;&#x7248;&#x672C;&#xFF0C;&#x5F53;&#x4F60;&#x9700;&#x8981;&#x8FED;&#x4EE3;&#x7248;&#x672C;&#x65F6;&#xFF0C;&#x5FC5;&#x987B;&#x4FEE;&#x6539;&#x8FD9;&#x4E2A;&#x503C;&#xFF08;&#x53EF;&#x624B;&#x52A8;&#x4FEE;&#x6539;&#xFF0C;&#x53EF;&#x8FD0;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x4FEE;&#x6539;&#xFF09;&#xFF1B;</li>
</ol>
<pre class="language-"><code>$ npm version patch &#x4F1A;&#x589E;&#x52A0;&#x5C0F;&#x7248;&#x672C; 1.0.1&#xFF1A;&#x5C5E;&#x4E8E;&#x5C0F;&#x4FEE;&#x6539;&#xFF0C;&#x4E0D;&#x66F4;&#x6539;&#x529F;&#x80FD;&#x4F7F;&#x7528;
$ npm version minor &#x4F1A;&#x589E;&#x52A0;&#x4E8C;&#x7EA7; 1.1.0:&#x53EF;&#x80FD;&#x6DFB;&#x52A0;&#x4E86;&#x4E00;&#x4E9B;&#x529F;&#x80FD;&#xFF0C;&#x4E0D;&#x5F71;&#x54CD;&#x4EE5;&#x524D;&#x7684;&#x4F7F;&#x7528;&#x3002;
$ npm version major &#x4F1A;&#x589E;&#x52A0;&#x5927;&#x7248;&#x672C; 2.0.0:&#x53EF;&#x80FD;&#x6539;&#x4E86;API&#xFF0C;&#x8F93;&#x5165;&#x5927;&#x8303;&#x56F4;&#x7684;&#x4FEE;&#x6539;&#x3002;
</code></pre><ol>
<li>main -----&gt; &#x5305;&#x7684;&#x5165;&#x53E3;&#xFF0C;&#x5F53;&#x4F60;&#x4F7F;&#x7528;import xx from &apos;xxxx&apos;&#x7684;&#x65F6;&#x5019;&#x9ED8;&#x8BA4;&#x5F15;&#x5165;&#x7684;&#x5C31;&#x662F;main&#x6587;&#x4EF6;&#xFF1B;</li>
<li>private -----&gt; &#x662F;&#x5426;&#x4E3A;&#x79C1;&#x6709;&#x5305;&#xFF0C;&#x5982;&#x679C;&#x4F20;&#x5230;npm&#x4E0A;&#x5FC5;&#x987B;&#x6539;&#x4E3A;false&#xFF1B;</li>
<li>license -----&gt;&#x5F00;&#x6E90;&#x534F;&#x8BAE;</li>
<li>author ------&gt;&#x4F5C;&#x8005; &lt;&#x53EF;&#x9009;&gt;</li>
<li>description -----&gt;&#x5305;&#x7684;&#x63CF;&#x8FF0; &lt;&#x53EF;&#x9009;&gt;</li>
<li>keyworlds -----&gt;&#x5173;&#x952E;&#x5B57; &lt;&#x53EF;&#x9009;&gt;</li>
<li>repository -----&gt;&#x5305;&#x5B58;&#x653E;&#x7684;&#x4ED3;&#x5E93;&#x5730;&#x5740;</li>
</ol>
<p>....... &#x8FD8;&#x6709;&#x5F88;&#x591A;&#x914D;&#x7F6E;&#x9879;&#x53EF;&#x81EA;&#x5DF1;&#x67E5;&#x8BE2;&#x914D;&#x7F6E;&#x9879;,&#x628A;&#x914D;&#x7F6E;&#x9879;&#x52A0;&#x5165;package.json</p>
<pre class="language-"><code>{
    &quot;name&quot;:&quot;fantui&quot;,
    &quot;version&quot;:&quot;0.1.0&quot;,
    &quot;author&quot;:{
        &quot;name&quot;:&quot;gary&quot;,
        &quot;email&quot;:&quot;xxxxxxxxx@qq.com&quot;
    },
    &quot;private&quot;:false,
    &quot;license&quot;:&quot;MIT&quot;,
    &quot;description&quot;:&quot;a vue lib&quot;,
    &quot;keyWorlds&quot;:[&quot;test&quot;,&quot;vue&quot;,&quot;libs&quot;],
    &quot;main&quot;:&quot;lib/fantui.umd.min.js&quot;
}
</code></pre><p>npm &#x7684;&#x53D1;&#x5E03;&#x4E5F;&#x6709;&#x9700;&#x8981;&#x5FFD;&#x7565;&#x7684;&#x654F;&#x611F;&#x4FE1;&#x606F;&#x6587;&#x4EF6;&#xFF0C;&#x6240;&#x4EE5;&#x9700;&#x8981;&#x6DFB;&#x52A0;.npmignore&#x6587;&#x4EF6;&#xFF0C;&#x6392;&#x9664;&#x5F00;&#x53D1;&#x73AF;&#x5883;&#x4E0B;&#x7684;&#x6587;&#x4EF6;&#x5185;&#x5BB9;</p>
<pre class="language-"><code># dir
examples/
packages/
public/
node_modules/

# Log 
filesnpm-debug.log*
yarn-debug.log*
yarn-error.log*
vue.config.js
babel.config.js
*.map

# Editor directories and files
.DS_Store
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.prettierrc
</code></pre><p>&#x914D;&#x7F6E;&#x5B8C;&#x540E;,&#x5C31;&#x53EF;&#x4EE5;&#x53D1;&#x5E03;&#x4E86;&#xFF0C;&#x9996;&#x5148;&#x4F7F;&#x7528;npm login &#x4E00;&#x6B65;&#x6B65;&#x8F93;&#x5165;&#x8D26;&#x53F7;&#xFF0C;&#x5BC6;&#x7801;&#xFF0C;&#x90AE;&#x7BB1;&#xFF08;&#x5982;&#x679C;&#x6CA1;&#x6709;&#x8D26;&#x53F7;&#x7684;&#x76F4;&#x63A5;&#x53BB;&#x5B98;&#x7F51;&#x6CE8;&#x518C;&#x5373;&#x53EF;&#xFF09;&#xFF0C;&#x7136;&#x540E;&#x8FD0;&#x884C; npm publish ,&#x5982;&#x679C;&#x5931;&#x8D25;&#x4E5F;&#x8BB8;&#x662F;&#x5305;&#x91CD;&#x540D;&#x3002;&#x73B0;&#x5728;&#x4F60;&#x7684;&#x7EC4;&#x4EF6;&#x5305;&#x5DF2;&#x7ECF;&#x53D1;&#x5E03;&#x6210;&#x529F;&#x4E86;&#xFF0C;&#x5728;&#x5176;&#x4ED6;&#x9879;&#x76EE;&#x4E2D;&#x4F7F;&#x7528;npm install fantui&#x540E;&#x5728;&#x5165;&#x53E3;&#x6587;&#x4EF6; Vue.use(xxx)&#x5373;&#x53EF;&#x4F7F;&#x7528;&#x6240;&#x6709;&#x7684;&#x7EC4;&#x4EF6;&#x3002;</p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; YoungGary 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">&#x8BE5;&#x6587;&#x4EF6;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2021-09-09 22:08:17
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="./" class="navigation navigation-prev " aria-label="Previous page: 基于Vue的PC端的组件库">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../life/" class="navigation navigation-next " aria-label="Next page: 网事杂谈">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.环境搭建","level":"1.6.1","depth":2,"next":{"title":"网事杂谈","level":"1.7","depth":1,"path":"life/README.md","ref":"life/README.md","articles":[{"title":"1.周杰伦专辑赏析--叶惠美","level":"1.7.1","depth":2,"path":"life/1.md","ref":"life/1.md","articles":[]},{"title":"2.周杰伦专辑赏析--七里香","level":"1.7.2","depth":2,"path":"life/2.md","ref":"life/2.md","articles":[]}]},"previous":{"title":"基于Vue的PC端的组件库","level":"1.6","depth":1,"path":"vueLibrary/README.md","ref":"vueLibrary/README.md","articles":[{"title":"1.环境搭建","level":"1.6.1","depth":2,"path":"vueLibrary/1.md","ref":"vueLibrary/1.md","articles":[]}]},"dir":"ltr"},"config":{"plugins":["theme-comscore","prism","-highlight","copy-code-button","search-pro","-search","-lunr","expandable-chapters","splitter","-sharing","tbfed-pagefooter","anchor-navigation-ex"],"styles":{},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy YoungGary 2019","modify_label":"该文件修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prismjs/themes/prism-solarizedlight.css"],"lang":{"shell":"bash"}},"splitter":{},"search-pro":{},"fontsettings":{"theme":"white","family":"sans","size":2},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":false},"theme-comscore":{},"copy-code-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Gary","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Gary的小窝","language":"zh-hans","gitbook":"*","description":"Gary的小窝. 里面包含了个人撰写的技术文章"},"file":{"path":"vueLibrary/1.md","mtime":"2021-09-09T14:08:17.743Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-09-09T14:10:10.930Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-comscore/test.js"></script>
        
    

    </body>
</html>

